package tech.aistar.corejava.day06.extend;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/7/22 0022
 */
public class Dog extends Animal{

    private double loyalty;

    public Dog(){

    }

    public Dog(String name,double loyalty){
        super(name);
        this.loyalty = loyalty;
    }

    @Override
    public void spark() {
        System.out.println("汪汪~~~");
    }
}
